package com.origin.ebuy.bargd.dao.good;

import java.sql.SQLException;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public interface IGoodDao {
	
	public int addGood(JSONObject object) throws SQLException;
	
	public JSONArray queryGood(String[] cols,String where,Object[] param)throws SQLException;
	
	/**
	 * 修改商品
	 * @param cols
	 * @param where
	 * @param param
	 * @return
	 * @throws SQLException
	 */
	public int updateGood(String[] cols,String where,Object[] param)throws SQLException;
	
	/**
	 * 删除商品
	 * @param id
	 * @return
	 * @throws SQLException
	 */
	public int deleteById(String id)throws SQLException;
	
}
